package com.wjjun.test.ui

import android.view.View
import android.widget.Toast
import androidx.databinding.ViewDataBinding
import com.wjjun.app.R
import com.wjjun.base.ui.activity.BaseBindingActivity
import com.wjjun.test.ui.viewmodel.TestViewViewModel

/**
 *
 * author : wangjunjun
 * date   : 2022/8/16
 * desc   :
 */
class TestViewActivity : BaseBindingActivity<TestViewViewModel, ViewDataBinding>() {

    override fun initContent() {

    }

    override fun initParams() {
    }

    override suspend fun fetchData() {

    }

    override fun onClick(view: View) {
        when(view.id){
            R.id.btn_show -> {
                Toast.makeText(this,viewModel.input.value, Toast.LENGTH_SHORT).show()
            }
        }
    }
}